<?php
/**
 * Copyright (c) 2006, PORTALIER Julien
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @package      FeatherPHP
 * @subpackage   Core
 * @copyright    Copyright (c) 2006, Julien PORTALIER
 * @link         http://feather.portalier.com
 * @license      http://www.opensource.org/licenses/mit-license.php The MIT License
 */

class Configure
{
	static protected $vars;
	
	static function read($v)
	{
		return isset(self::$vars[$v]) ? self::$vars[$v] : false;
	} 
	
	static function write($v, $d=null)
	{
		if (!is_array($v)) {
			self::$vars[$v] = $d;
		}
		else
		{
			foreach($v as $vv => $dd) {
				self::$vars[$v] =& $dd;
			}
		}
	}
	
	static function delete($v)
	{
		unset(self::$vars[$v]);
	} 
}
?>